package cn.wolfcode.domain;

import com.alibaba.fastjson.JSON;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
public class MessageBoard {
    /** */
    private Long id;

    /** 昵称*/
    private String nickname;

    /** 留言内容*/
    private String content;

    /** 留言时间*/
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 业务大类*/
    private SystemDictionaryItem category;

    /** 业务小类*/
    private SystemDictionaryItem categoryItem;

    /** 回复状态(未回复/已回复)*/
    private boolean replystatus;

    private List<MessageReply> messageReplies = new ArrayList<>();

    private Integer noReplyCount;

    @Override
    public String toString(){
        return JSON.toJSONString(this);
    }

}